import {http} from "@/interceptor/luch-request/index.js"
// 添加托班记录
export const insertOrUpdate = (data) => {
    return http.post("api/admin/entrustRecord/v1/insertOrUpdate", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

// 托班列表
export const entrustRecordPage = (data) => {
	return http.get("api/admin/entrustRecord/v1/page", {
		data: data
	});
}


// 托班记录导出
export const excelWrite = (data) => {
	return http.get("api/admin/entrustRecord/v1/excelWrite", {
		data: data
	});
}



 // 删除托班记录
export const entrustRecordDelete = (data) => {
    return http.delete("api/admin/entrustRecord/v1/delete",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 
